package com.it.emall.service.impl;

import com.it.emall.domain.AdminUser;
import com.it.emall.domain.Administrators;
import com.it.emall.mapper.AdministratorsMapper;
import com.it.emall.service.AdministratorsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdministratorsServiceImpl implements AdministratorsService {

    @Autowired
    private AdministratorsMapper administratorsMapper;

    @Override
    public Administrators login(String username) {
        return administratorsMapper.selectUsername(username);
    }
}
